//
//  MarketListTableViewCell.m
//  BTCoin
//
//  Created by zzg on 2018/4/10.
//  Copyright © 2018年 Robin. All rights reserved.
//

#import "MarketListTableViewCell.h"

@implementation MarketListTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
}

- (void)setMarketModel:(MarketHomeListContentModel *)model {
    self.iconShortNameLa.text = model.fShortName;
    self.imageView.image = [[UIImage alloc] initWithData:[[NSData alloc]initWithContentsOfURL:[NSURL URLWithString:model.furl]]];
    
    self.numLa.text = [NSString stringWithFormat:@"量(24H)%@",model.h24Volume];
    self.nowPriceLa.text = model.fNewDealPrice;
    CGFloat zdf = [model.fTodayRiseFall floatValue];
    if (zdf > 0.00000000) {
        self.zdfLa.backgroundColor = [UIColor greenColor];
    }else if (zdf < 0.0000000) {
        self.zdfLa.backgroundColor = [UIColor redColor];
    }
    self.zdfLa.text = [NSString stringWithFormat:@"%@%%",model.fTodayRiseFall];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

}

@end
